package com.dxb.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.core.annotation.Order;

/**
 * @author Administrator
 */
@PropertySource(value = {
        "config/another.properties",
        "file:/etc/test.yml",
}, ignoreResourceNotFound = true)
@Configuration
@Data
public class AnotherConfig {
    public AnotherConfig(){
        System.out.println("AnotherConfig");
    }

    @Value("${com.dxb.config}")
    private String config;
}
